package com.wjh.course;

import com.wjh.kt_vod.model.vod.Course;
import com.wjh.kt_vod.model.vod.Teacher;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-vod")
public interface CourseFeignClient {

    @GetMapping("/api/vod/course/inner/findByKeyword/{keyword}")
    public List<Course> findByKeyword(
            @PathVariable String keyword);

    @GetMapping(value = "/api/vod/teacher/inner/getTeacherById/{id}")
    public Teacher getTeacherInfo(@PathVariable("id") long id) ;



}
